package com.managertrade.dto.base;

import lombok.Data;

import java.util.List;

@Data
public class PageResponseBaseDto<T> {
    List<T> list;
    //总条数
    private Integer total;
    //当前页码
    private Integer currentPage;
    //每页数量
    private Integer pageSize;

    public PageResponseBaseDto(List<T> list, Integer total, Integer currentPage, Integer pageSize) {
        this.list = list;
        this.total = total;
        this.currentPage = currentPage;
        this.pageSize = pageSize;
    }
}
